﻿#ifndef DIALOG_MC_UPDATE_H
#define DIALOG_MC_UPDATE_H

#include <QObject>
#include <QDialog>
#include "controller.h"
#include "usbbox.h"
QT_BEGIN_NAMESPACE
namespace Ui { class Dialog_mc_update; }
QT_END_NAMESPACE
class Dialog_mc_update : public QDialog
{
    Q_OBJECT
public:
    explicit Dialog_mc_update(UsbBox *box, int addr = 0x4D, QWidget *parent = nullptr);
    ~Dialog_mc_update();

signals:
private slots:
    void on_pushButton_3_clicked();

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void onProgressCallback(QString s, int percent);
private:
    Ui::Dialog_mc_update *ui;
    UsbBox *box;
    QString file_name;
    int address;
};

#endif // DIALOG_MC_UPDATE_H
